<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if(!isset($_SESSION)){
	session_start();
}
?>
<header class="layout-header">
</header>
<header class="layout-header fixed-header">
    <div class="layout-nav-container layout-nav-container-fluid clearfix">
    	<nav class="top-nav">
            <div class="navbar-header fl">
            	<!--nav logo-->
				<div class="logo fl">
					<a href="/"><img src="/static/images/logo.svg" width="150" alt="slideloop.com"></a>
				</div>
            </div>
            <div id="navbar" class="nav-main">
                <div class="menu-container">
                    <ul class="nav navbar-nav fl">
                        <li class="nav-item dropdown">
                            <a href="/slides" class=""><span class=""></span>全部</a>
                        </li>
						<li class="nav-item active">
	                            <a href="/latest"><span class=""></span>最新</a>
	                        </li>
						<li class="nav-item active">
                            <a href="/hot"><span class=""></span>热门</a>
                        </li>
						<!--
                        <li class="nav-item dropdown">
                            <a href="/special" class=""><span class=""></span>专题</a>
                        </li>-->
                        <li class="nav-item">
                            <a href="/meetings"><span class=""></span>会议/活动</a>
                        </li>
                        <li class="nav-item">
                            <a href="/search"><span class=""></span>搜索</a>
                        </li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right header-user-corner fr">
					<?php if(isset($_SESSION['username'])):?>
						<li class="access-btn login">
                            <a href="/profile/" alt="用户中心"><?=$_SESSION['username']?></a>
                        </li>
						<li>
                            <a href="/upload" class="upload"><span>上传</span></a>
                        </li>
					<?php else:?>
						<li class="access-btn login">
                            <a href="/login" alt="登录">登录</a>
                        </li>
                        <li class="access-btn regist">
                            <a href="/register" alt="注册">注册</a>
                        </li>
						<li>
                            <a href="/login" class="upload"><span>上传</span></a>
                        </li>
					<?php endif;?>
                        
                    </ul>
                </div>
            </div>
        </nav>
    </div>
</header>
